﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using Microsoft.Practices.EnterpriseLibrary.Logging;

namespace SchoolClient
{
    /// <summary>
    /// Приложение.
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// Обработчик исключений верхнего уровня.
        /// </summary>
        /// <param name="sender">источник события</param>
        /// <param name="e">аргументы события</param>
        private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            //Logger.Write(e.Exception.Message);
            MessageBox.Show(e.Exception.Message);
            e.Handled = true;
        }
    }
}
